const myChart = echarts.init(document.getElementById('main'));
option = {
    legend: {
        orient: "vertical",
        x: "right",
        y: "center",
        data: ['专家人才', '科技培养人才工程', '高技能人才']
    },

    tooltip: {
        show: true,
        showContent: true,
        trigger: 'item',
        formatter: function (params) {
            if (params.indicator2) { // is edge
                return params.value.weight;
            } else {// is node
                return params.name
            }
        }

    },
    color: ["#99B898", "#FECEA8", "#FF847C", "#E84A5F"],
    // color: ["#e6c34c", "#5c8ff9", "#5bd8a6", "#5d7092"],
    series: [
        {
            type: 'chord',
            sort: 'descending', // can be 'none', 'ascending', 'descending'
            sortSub: 'descending', // can be 'none', 'ascending', 'descending'
            startAngle: 90,
            clockWise: false,
            padding: 3,
            radius: ['75%', '80%'],
            showScale: false,
            itemStyle: {
                normal: {
                    label: {
                        rotate: false
                    },
                }
            },
            nodes: [
                {name: '陈志龙'},
                {name: '钱龙'},
                {name: '刘孟'},
                {name: '諾伊爾'},
                {name: '博阿滕'},
                {name: '施魏因施泰格'},
                {name: '拉姆'},
                {name: '克羅斯'},
                {name: '穆勒'},
                {name: '格策'},
                {name: '胡梅爾斯'},
                {name: '魏登費勒'},
                {name: '杜爾姆'},
                {name: '格羅斯克羅伊茨'},
                {name: '专家人才'},
                {name: '科技培养人才工程'},
                {name: '高技能人才'}
            ],
            links: [
                {source: '专家人才', target: '陈志龙', weight: 2, name: '评分'},
                {source: '专家人才', target: '钱龙', weight: 1, name: '评分'},
                {source: '专家人才', target: '刘孟', weight: 5, name: '评分'},
                {source: '科技培养人才工程', target: '諾伊爾', weight: 7, name: '评分'},
                {source: '科技培养人才工程', target: '博阿滕', weight: 2, name: '评分'},
                {source: '科技培养人才工程', target: '施魏因施泰格', weight: 4, name: '评分'},
                {source: '科技培养人才工程', target: '拉姆', weight: 5, name: '评分'},
                {source: '科技培养人才工程', target: '克羅斯', weight: 3, name: '评分'},
                {source: '科技培养人才工程', target: '穆勒', weight: 0.5, name: '评分'},
                {source: '科技培养人才工程', target: '格策', weight: 4, name: '评分'},
                {source: '高技能人才', target: '胡梅爾斯', weight: 3, name: '评分'},
                {source: '高技能人才', target: '魏登費勒', weight: 6, name: '评分'},
                {source: '高技能人才', target: '杜爾姆', weight: 5, name: '评分'},
                {source: '高技能人才', target: '格羅斯克羅伊茨', weight: 4, name: '评分'},

                {target: '专家人才', source: '陈志龙', weight: 1},
                {target: '专家人才', source: '钱龙', weight: 1},
                {target: '专家人才', source: '刘孟', weight: 3},
                {target: '科技培养人才工程', source: '諾伊爾', weight: 1},
                {target: '科技培养人才工程', source: '博阿滕', weight: 1},
                {target: '科技培养人才工程', source: '施魏因施泰格', weight: 1},
                {target: '科技培养人才工程', source: '拉姆', weight: 1},
                {target: '科技培养人才工程', source: '克羅斯', weight: 1},
                {target: '科技培养人才工程', source: '穆勒', weight: 1},
                {target: '科技培养人才工程', source: '格策', weight: 1},
                {target: '高技能人才', source: '胡梅爾斯', weight: 1},
                {target: '高技能人才', source: '魏登費勒', weight: 1},
                {target: '高技能人才', source: '杜爾姆', weight: 1},
                {target: '高技能人才', source: '格羅斯克羅伊茨', weight: 1}
            ]
        }
    ]
};

myChart.setOption(option);